package com.vans.api.api.user;


import order.OrderInfoVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import user.UserInfoVO;

/**
 * @author Elle
 * @since 2020-10-24
 */
public interface UserServiceAPI {

    /**
     * 按id查询
     * @param id
     * @return
     */
    @RequestMapping(value = "/user/get-by-id", method = RequestMethod.GET)
    public UserInfoVO getById(@RequestParam(value = "id") Integer id);

    /**
     * 按id查询
     * @param id
     * @return
     */
    @RequestMapping(value = "/user/get-order-by-userid", method = RequestMethod.GET)
    public OrderInfoVO getOrderByUser(@RequestParam(value = "id") Integer id);
}
